

#ifndef _LOWSIDESWITCH_H
#define _LOWSIDESWITCH_H

#define LOWSIDESWITCH_CMD_1        0b0000000000000000 //full diagnosis information
#define LOWSIDESWITCH_CMD_2        0b1100000000000000
#define LOWSIDESWITCH_CMD_3        0b1010000000000000
#define LOWSIDESWITCH_CMD_4        0b0011000000000000
#define LOWSIDESWITCH_CMD_5        0b1111000000001111
#define LOWSIDESWITCH_CMD_6        0b0000111100000000 //full diagnosis informaiton
#define LOWSIDESWITCH_CMD_7        0b1100111100000000
#define LOWSIDESWITCH_CMD_8        0b1010111100000000
#define LOWSIDESWITCH_CMD_9        0b0011111100000000
#define LOWSIDESWITCH_CMD_10       0b1111111100001111



void lowsideswitch_init(void);

unsigned long lowsideswitch_read_diagnosis(void);

unsigned int lowsideswitch_output(unsigned int ch ,unsigned int flag);

#endif